import request from '@/utils/request'

// 查询手机验证码表列表
export function listPhonecode(query) {
  return request({
    url: '/service/phonecode/list',
    method: 'get',
    params: query
  })
}

// 查询手机验证码表详细
export function getPhonecode(phonecodeId) {
  return request({
    url: '/service/phonecode/' + phonecodeId,
    method: 'get'
  })
}

// 新增手机验证码表
export function addPhonecode(data) {
  return request({
    url: '/service/phonecode',
    method: 'post',
    data: data
  })
}

// 修改手机验证码表
export function updatePhonecode(data) {
  return request({
    url: '/service/phonecode',
    method: 'put',
    data: data
  })
}

// 删除手机验证码表
export function delPhonecode(phonecodeId) {
  return request({
    url: '/service/phonecode/' + phonecodeId,
    method: 'delete'
  })
}
